#ifndef URLUTILS_H
#define URLUTILS_H
#include <QUrl>
#include <QFileInfo>

/** Convenience functions for converting between paths and filenames. */
namespace UrlUtils
{
    QString toLocalFile(QUrl url);

    /** @returns completeBaseName() for various types.  */
    QString baseName(QFileInfo fi);
    QString baseName(QString path);
    QString baseName(QUrl url);
}

#endif // URLUTILS_H
